<template>
  <van-nav-bar
    title="标题"
    left-text="返回"
    right-text="按钮"
    left-arrow
    @click-left="onClickLeft"
    @click-right="onClickRight"
  />
</template>
<script>
export default {
    methods: {
        onClickLeft() {
            this.$router.push('/')
        },
        onClickRight() {
            alert('test')
        }
    }
};
</script>
<style lang="sass" scoped>

</style>